#include <stdio.h>
#include<string.h>
#include<unistd.h>
#define N 102
int main()
{
    char arr[N];
   const  char *sign="|/-\\";
    memset(arr,0,sizeof(arr));
    int count = 0;
    while(count<=100)
    {
        printf("[%-100s][%d%%][%c]\r",arr,count,sign[count%4]);
        usleep(10000);
        fflush(stdout);
        arr[count]+='#';
        count++;

    }
    return 0;
}
